package com.koron.order.overhaul.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author jzp
 * @since 2021/9/26
 */
@Data
@ApiModel("大修分级分项验收标准详情信息")
public class GradeDTO {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty("分级分项标准编码")
    private String code;

    @ApiModelProperty("分级分项标准名称")
    private String name;

    @ApiModelProperty("设备分类ID")
    private String typeId;

    @ApiModelProperty("创建水司")
    private String appid;

    @ApiModelProperty("是否公共")
    private Integer publicStatus;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建单位ID")
    private String deptId;

    @ApiModelProperty("创建单位名称")
    private String deptName;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人账号")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty("设备分类名称")
    private String typeName;

    @ApiModelProperty("创建水司")
    private String appName;

    @ApiModelProperty(value = "删除标志")
    private Integer deleteFlag;

    List<GradeItem> items;
}
